//此文件用来测试 获取请求url进行判断并将响应体转发 测试结果:无法在同一个脚本中获取请求和响应的参数

var requrl = $request.url;

var rsp = $response.body;

var newurl = "https://api.day.app/SR5R2j5UCzZmkq23WcuwCg/"+requrl+"---"+encodeURI(rsp);

let params = {
	url: newurl,
	headers: {
		'Content-Type': "application/x-www-form-urlencoded"
	},
	body: {
		'app': "storm sniffer"
	}, //仅仅在post请求中有效
}
$httpClient.get(params, function(error, response, data) {})